

<?php
$conn=mysqli_connect("localhost","root","","mydb");
if (empty($conn)){
	die ("mysqli_connect failed:".mysqli_connect_error());
}

//mysql_query("set names 'utf8'");
mysqli_query($conn,"set names 'utf8'");
?>